package cn.jeeweb.web.modules.equipment.service;

import cn.jeeweb.common.mybatis.mvc.service.ICommonService;
import cn.jeeweb.web.modules.equipment.entity.EqsMaintenanceTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @description: eqs_maintenance_task服务接口
*/
public interface IEqsMaintenanceTaskService extends ICommonService<EqsMaintenanceTask> {

    boolean createMaintenanceTask(String[] ids,String timeFrame,String sysConfigCode,String json);

    boolean updateMaintenanceTaskStatus(String status, String[] ids);

    boolean updateMaintenanceTask(EqsMaintenanceTask eqsMaintenanceTask);

    public boolean insertOrUpdate(String json,String json_);

    /**
     * 获取最近的任务
     * @return
     */
    List<EqsMaintenanceTask> getByTaskDate(EqsMaintenanceTask eqsMaintenanceTask);

    boolean createMaintenanceTask_(String[] ids, String endTime, String sysConfigCode, String json);
}